home *** CD-ROM | disk | FTP | other *** search
/ Professional Soft Collection 1.02 / Professional Soft Collection 1.02.iso / msdos622.rus / msdos_4.ddi / SD6COPY.BAT < prev    next >
DOS Batch File  |  1993-05-31  |  754b  |  38 lines

  1. @echo off
  2. if not "%1"=="" goto checkit
  3. echo To install the Supplemental Utilities, type SETUP at the command prompt.
  4. goto done
  5.  
  6. :checkit
  7. if "%1"=="CHANGEDISK" goto chngdsk
  8.  
  9. if not exist %2\%1 goto doit
  10. echo There is already a file named %1 in %2.
  11. %2\choice /c:yn "Do you want to overwrite it?  Yes, No "
  12. if errorlevel 2 goto done
  13.  
  14. :doit
  15. if "%3"=="NC" goto special
  16. echo   Copying %1 to %2\%1
  17. %2\expand %1 %2\%1  > NUL
  18. if "%3"=="D" setver %1 /D /QUIET > NUL
  19. goto done
  20. :special
  21. echo   Copying %1 to %2
  22. %4\expand %1 %2  > NUL
  23. goto done
  24.  
  25. :chngdsk
  26. if "%SD6%"=="%2" goto done
  27. if exist %DISK%ID0%2.BAT goto newdisk
  28. echo.
  29. echo Insert Supplemental Disk %2, and then press ENTER.
  30. pause
  31. goto chngdsk
  32.  
  33. :newdisk
  34. set SD6=%2
  35.  
  36. :done
  37.  
  38.